<%--
    @Description： 新增区域
    @Author： 樊双峰
    @Date： 2018-08-10 23:54
--%>
<div class="bjui-pageContent tableContent">
    <form id="addfinalyieldfrom" class="pageForm nice-validator n-red" data-reload-navtab="true" data-toggle="validate"
          action="${request.getContextPath()}/Area/saveArea?uid=${Area?.id}"
          method="post"
          onsubmit="return checkInfo();">
        <div class="bjui-searchBar">
            <table class="table table-condensed table-hover">
                <tr>
                    <td>
                        <label class="control-label x90">区域名<strong><span class="text-danger">*</span></strong>：</label>
                    </td>
                    <td>
                        <input name="areaName" value="${Area.areaName}" placeholder="请输入区域名..." data-rule="required" data-rule="digits"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x90">区域描述<strong><span class="text-danger">*</span></strong>：</label>
                    </td>
                    <td>
                        <input name="areaDesc" value="${Area.areaDesc}" placeholder="请输入区域描述..." data-rule="required" data-rule="digits"/>
                    </td>
                </tr>
            </table>
        </div>
        <input type="hidden" name="id" value="${Area?.id}"/>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn btn-close">关闭</button></li>
        <li><button type="button" class="btn btn-red clear" onclick='javascript:clearInfo()'>清空</button></li>
        <li><button type="submit" class="btn btn-green save">保存</button></li>
    </ul>
</div>
<script type="text/javascript">
    function clearInfo() {
        $("input").val("");
        $("select").val("===请选择===")
    }
    function checkInfo() {
        if (document.getElementById("filesn").value == "") {
            return false
        } else {
            return true
        }
    }
</script>